import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index'
// import login from '@/pages/login/login'
// 添加商品or修改商品
import SteakAdd from '@/pages/Steak-series/add'
// 菜单管理
import Steakindex from '@/pages/Steak-series/index'
// 添加商品or修改商品
import Steakupdate from '@/pages/Steak-series/update'
// 订单管理
import management from '@/pages/management/order'
// 分类内容
import conCation from '@/pages/management/conCation'
// 添加位置
import Alocation from '@/pages/management/Alocation'
// 商家信息
import Seller from '@/pages/Seller/index'
// 修改商家信息
import SetSeller from '@/pages/Seller/setSeller'

import text from '@/pages/text'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'index',
      component: index
    },
    {
      // 菜单管理
      path: '/Steak-series',
      name: 'Steakindex',
      component: Steakindex,
    },
    {
      // 添加商品or修改商品
      path: '/Steak-series/update',
      name: 'Steakupdate',
      component: Steakupdate
    }, {
      // 添加商品or修改商品
      path: '/Steak-series/add',
      name: 'SteakAdd',
      component: SteakAdd
    },
    {
      // 订单管理
      path: '/order',
      name: 'management',
      component: management,

    },
    {
      // 分类内容
      path: '/conCation',
      name: 'conCation',
      component: conCation,

    },
    {
      // 添加桌号位置  
      path: '/Alocation',
      name: 'Alocation',
      component: Alocation,

    }, {
      // 商家信息  
      path: '/Seller',
      name: 'Seller',
      component: Seller,

    }, {
      // 修改or添加 商家信息  
      path: '/Seller/setSeller',
      name: 'SetSeller',
      component: SetSeller,

    },


    {
      path: '/text',
      name: '测试',
      component: text,
      meta: {
        index: "2-2"
      }
    }

  ]
})
